<#import "/ftl/mainAdmin.ftl" as page>

<@page.mainTemplate styleSheet="rolemanageCss" jsFile="rolemanageJs" current="角色管理">
  	<div class="page-content">
        <!-- BEGIN PAGE HEAD-->
        <div class="page-head">
            <!-- BEGIN PAGE TITLE -->
                <div class="page-title">
                    <h1>角色管理
                        <small>分配管理角色页面</small>
                    </h1>
                </div>
            <!-- END PAGE TITLE -->
        </div>
        <!-- END PAGE HEAD -->
        <!-- BEGIN PAGE BREADCRUMB -->
        <ul class="page-breadcrumb breadcrumb">
            <li>
	            <a href="${context}/base/index_ftl">首页</a>
	            <i class="fa fa-circle"></i>
	        </li>
            <li>
                <span class="active">角色管理</span>
            </li>
        </ul>
        <!-- END PAGE BREADCRUMB -->
        <!-- BEGIN PAGE BASE CONTENT -->
        <div class="row">
            <div class="col-md-12 col-sm-12 search-form">
                <form id="roleManageForm" action="" method="post">
                    <div class="search-item input-group col-md-4 col-sm-4">
                        <span class="input-group-addon">角色编码</span>
                        <input class="form-control" name="role_code" placeholder="角色编码"></input>
                    </div>
                    <div class="search-item input-group col-md-4 col-sm-4">
                        <span class="input-group-addon">角色名称</span>
                        <input class="form-control" name="role_name" placeholder="角色名称"></input>
                    </div>
                    <div class="search-item input-group col-md-4 col-sm-4">
                        <span class="input-group-addon">角色分类</span>
                        <select   name="role_type" placeholder="状态" class="form-control">
                             <option value="">--请选择--</option>
                             <option value="ROLE_COMPANY">公司角色</option>
                             <option value="ROLE_USER_CENTER">系统角色</option>
                            
                        </select>
                    </div>
                    <div class="search-item input-group col-md-4 col-sm-4">
                        <span class="input-group-addon">所属公司</span>
                        <select class="form-control" name="company_id">
                            
                        </select>
                        <!-- <input class="form-control" placeholder="公司类别"></input> -->
                    </div>
                    <div class="search-item input-group col-md-4 col-sm-4">
                        <a href="" id="roleSearch" class="btn btn-success ">查询</a>
                        <a href="" id="roleSearchClean" class="btn btn-default">清空</a>
                    </div>
                </form>
            </div>
        </div>
        <div class="row">
            <div class="col-md-12 col-sm-12">
                <!-- BEGIN PORTLET-->
                <div class="portlet light bordered">
                    <div class="portlet-title">
                        <div class="caption">
                            <a href="${context}/role/toRoleAdd" class="btn btn-success" id="btnCreateCom">创建角色</a>
                            <!-- <i class="icon-layers font-green"></i>
                            <span class="caption-subject font-green bold uppercase">公司列表</span> -->
                        </div>
                        <div class="tools"> </div>
                    </div>
                    <div class="portlet-body">
                        <table class="table table-striped table-bordered table-hover" id="roleList">
                            <thead>
                                <tr role="row" class="heading">
                                    <th > 角色编码 </th>
                                    <th > 角色名称 </th>
                                    <th > 角色分类 </th>
                                    <th > 所属公司 </th>
                                    <th > 备注 </th>
                                    <th > 操作 </th>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </div>
                <!-- END PORTLET-->
            </div>
        </div>
        <!-- END PAGE BASE CONTENT -->
    </div>
</@page.mainTemplate>